package com.iran.chainOfResponsibility;

/**
 * 具体得处理请求得类1
 */
public class ConcreteHandler3 extends Handler {

    @Override
    public void handleRequest(int request) {
        //20-30处理该请求
        if (request>20 && request<=30){
            System.out.println("处理请求3");
        }else if (successor!=null){
            successor.handleRequest(request);//转移到下一位
        }
    }
}
